﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;

namespace Domain.Model.Utils
{
    /// <summary>
    /// This class is needed to compare objects of type Entity for NHibernate.
    /// </summary>
    public class EntityEqualityComparer : IEqualityComparer
    {
        public bool Equals(object x, object y)
        {
            return x.Equals(y);
        }

        public int GetHashCode(object obj)
        {
            return obj.GetHashCode();
        }
    }
}